package com.zy.pay.exception;


/**
 * description 自定义异常类
 *
 * @author ZY
 * @date 2021-03-06 15:02:23
 **/
public class DefinitionException extends RuntimeException {

    protected Integer errorCode;
    protected String errorMsg;

    public DefinitionException() {

    }

    public DefinitionException(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

}